#_*_  coding:utf-8
__author__ = 'han'
money=10000
wares={'bike':800,'apple':4000,'smartion':3000}
while money>=wares.get('bike'):
    inPut=raw_input('''\n please chooes the iteam:\n your have %d
      ===========================
        bike:800
        apple:4000
        smartion:3000
      ===========================
       input:
        ''' % money)
    # for i in wares.keys():
    #     if inPut==i:
    if inPut in wares:
        if wares[inPut]>money:
            print "Money not Enough,please chooes another!"

        else:
            money=money-wares[inPut]
            print 'you also have money:', money
    else:
        print "don't have this goods,please try again"
else:
    print 'sorry you count by something',money